# -.- coding: utf-8 -.-

from django.conf.urls.defaults import *
from anima.views import *
from anima.forms import *
from django.conf import settings

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
                       #lavado de cara del sistema de registro de la aplicacion "registro" para que cree un jugador a la par que crea un usuario del sistema
                       (r'^registro/registro/', 'registro.views.register',{'form_class':RoleandoRegistroBasicoForm}),
                        (r'^registro/', include('registro.urls')),
                        (r'^gestor/', include('fichas.urls')),
                        (r'^perfil/', include('perfiles.urls')),
                        (r'^partidas/', include('partidas.urls')),
                        (r'^site_media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),
                        (r'^admin/(.*)', admin.site.root),
)

urlpatterns += patterns('anima.views',
                       url(r'^$', 'inicio', name='inicio'),
                       url(r'^inicial/$', 'inicial', name='inicial'),
)
